if (typeof (__hasjxdl) == 'undefined' && navigator.cookieEnabled) {
    ; (function() {
        var a = {};
        var d = navigator.userAgent;
        a.isfixed = false;
        a.islog = true;
        a.width = 130;
        a.height = 300;
        a.zIndex = null;
        a.minDisTime = null;
        a.closeMode = null;
        a.popUrl = null;
        a.TimerLogoSL = null;
        a.TimerLogoHL = null;
        a.TimerLogoSR = null;
        a.TimerLogoHR = null;
        a.top = 50;
        a.side = 2;
        a.ver = {
            ie: /MSIE/.test(d),
            ie6: !/MSIE 7\.0/.test(d) && (/MSIE 6\.0/.test(d) || /MSIE 5\.0/.test(d)) && !/MSIE 8\.0/.test(d) && !/MSIE 9\.0/.test(d),
            isie789: /MSIE 7\.0/.test(d) || /MSIE 8\.0/.test(d) || /MSIE 9\.0/.test(d),
            isfixed: /WebKit/.test(d) || /Firefox/.test(d) || /Opera/.test(d)
        };
        a.init = function(openUrl) {
            if(typeof (jx_logo_dl) != 'undefined' && jx_logo_dl == 'false')
                this.islog=false;
            if (this.ver.isfixed) this.isfixed = true;
            else if (this.ver.isie789 && document.compatMode != "BackCompat") this.isfixed = true;
            
            var keyArr = [];
            if(typeof (_jx_keyArr) != 'undefined'){
                keyArr = this.getRand(_jx_keyArr, 4);
            }
            if(0)this.side = (window.screen.width - 0 )/2 - this.width;
            var s = "<div id='jx_left' style='width:"+this.width+"px;height:"+this.height+"px;position:fixed !important; top:"+this.top+"px;position:absolute; z-index:2147483647; top:expression(offsetParent.scrollTop+"+this.top+");left:"+this.side+"px;'>";
            s += "<div style='position:relative;width:"+this.width+"px;height:"+this.height+"px;border: 1px solid #CCCCCC;'>";
            s += "<div style='z-index:199999; left:3px;top:3px; width:16px; height:16px; position:absolute;'><a href='javascript:void(0);' target='_self'  onclick='_jx_c_(\"jx_left\");'><img style='width:14px; height:14px;' src='http://cpv.rwjfs.com/cpv/images/close.png' border='0'></a></div>";
            s += "<iframe id='jx_ifrl' src='"+openUrl+"' width="+this.width+" height="+this.height+" frameborder='0' marginwidth='0' marginheight='0'scrolling='no' border='0' frameborder='0'></iframe>";
            if (this.islog)
                s += "<div id='__jx_fm_Logo_l' style='position:absolute;bottom:0;right:0;overflow: hidden;' onmouseover='_jx_richmedia_dl.showLogo_l()' onmouseout='_jx_richmedia_dl.hideLogo_l()'><a href='http://www.ads360.cn' target='_blank'><img src='http://cpv.rwjfs.com/cpv/images/logo.png' border='0' width='77' height='15'></a></div>";
            s += "</div>";           
            if(keyArr.length>0){
                s +="<div style=\"margin-top:5px;border: 1px solid #ccc;background:#fff;overflow: hidden;width:130px;text-align: left;\">";
                s +="<div style=\"overflow:hidden;width:130px;height:24px;\">";
                s +="<a id=\"_jx_title0\" target=\"_blank\" href=\""+keyArr[0]["url"]+"\" style=\"padding:1px 4px 1px 8px;white-space: normal;word-break: break-all;word-wrap: break-word;line-height: 24px;height: 24px;font-size: 12px;font-family: arial,simsun,sans-serif,宋体;color: #0F0CBF;text-decoration: none;\">"+keyArr[0]["key"]+"</a>";
                s +="</div>";
                s +="<div style=\"overflow:hidden;width:130px;height:24px;\">";
                s +="<a id=\"_jx_title1\" target=\"_blank\" href=\""+keyArr[1]["url"]+"\" style=\"padding:1px 4px 1px 8px;white-space: normal;word-break: break-all;word-wrap: break-word;line-height: 24px;height: 24px;font-size: 12px;font-family: arial,simsun,sans-serif,宋体;color: #0F0CBF;text-decoration: none;\">"+keyArr[1]["key"]+"</a>";
                s +="</div>";
                s +="</div>";
            }
            s += "</div>";
            
            s += "<div id='jx_right' style='width:"+this.width+"px;height:"+this.height+"px;position:fixed !important; top:"+this.top+"px;position:absolute; z-index:2147483647; top:expression(offsetParent.scrollTop+"+this.top+");right:"+this.side+"px;'>";
            s += "<div style='position:relative;width:"+this.width+"px;height:"+this.height+"px;border: 1px solid #CCCCCC;'>";
            s += "<div style='z-index:199999; left:3px;top:3px; width:16px; height:16px; position:absolute;'><a href='javascript:void(0)'  target='_self'  onclick='_jx_c_(\"jx_right\");'><img style='width:14px; height:14px;' src='http://cpv.rwjfs.com/cpv/images/close.png' border='0'></a></div>";
            s += "<iframe id='jx_ifrr' src='"+openUrl+"' width="+this.width+" height="+this.height+" frameborder='0' marginwidth='0' marginheight='0'scrolling='no' border='0' frameborder='0'></iframe>";
            if (this.islog)
                s += "<div id='__jx_fm_Logo_r' style='position:absolute;bottom:0;right:0;overflow: hidden;'  onmouseover='_jx_richmedia_dl.showLogo_r()' onmouseout='_jx_richmedia_dl.hideLogo_r()'><a href='http://www.ads360.cn' target='_blank'><img src='http://cpv.rwjfs.com/cpv/images/logo.png' border='0' width='77' height='15'></a></div>";
            s += "</div>";           
            if(keyArr.length>0){
                s +="<div style=\"margin-top:5px;border: 1px solid #ccc;background:#fff;overflow: hidden;width:130px;text-align: left;\">";
                s +="<div style=\"overflow:hidden;width:130px;height:24px;\">";
                s +="<a id=\"_jx_title2\" target=\"_blank\" href=\""+keyArr[2]["url"]+"\" style=\"padding:1px 4px 1px 8px;white-space: normal;word-break: break-all;word-wrap: break-word;line-height: 24px;height: 24px;font-size: 12px;font-family: arial,simsun,sans-serif,宋体;color: #0F0CBF;text-decoration: none;\">"+keyArr[2]["key"]+"</a>";
                s +="</div>";
                s +="<div style=\"overflow:hidden;width:130px;height:24px;\">";
                s +="<a id=\"_jx_title3\" target=\"_blank\" href=\""+keyArr[3]["url"]+"\" style=\"padding:1px 4px 1px 8px;white-space: normal;word-break: break-all;word-wrap: break-word;line-height: 24px;height: 24px;font-size: 12px;font-family: arial,simsun,sans-serif,宋体;color: #0F0CBF;text-decoration: none;\">"+keyArr[3]["key"]+"</a>";
                s +="</div>";
                s +="</div>";
            }
            s += "</div>";

            var div = document.createElement('div');
            div.innerHTML = s;
            document.body && document.body.insertBefore(div, document.body.firstChild);
                
            window._jx_c_ = function (id) {
                _jx_richmedia_dl.close(id);
            };
        }
        a.open = function(openUrl) {           
            if(this.isInFrame()) {
                return;
            }
            this.init(openUrl);
            this.loop();
            this.TimerLogoHL = setTimeout(_jx_richmedia_dl.hideLogo_l, 1);
            this.TimerLogoHR = setTimeout(_jx_richmedia_dl.hideLogo_r, 1);
        }
        a.isInFrame = function() {
 if (typeof(jx_isbd) != 'undefined' && jx_isbd)
    return false;
            if (self != window.top) {
            	var s = "<div style='padding:10px; background-color:#FFF; font-size:14px; text-align:left; color:red;'>对不起，富媒体广告不允许放在框架内<br><a href='http://www.ads360.cn' target=_blank>360全景网盟<\/a><\/div>";
            	var div = document.createElement('div');
            	div.innerHTML = s;
            	document.body && document.body.insertBefore(div, document.body.firstChild);
            	return true;
            } else
            	return false;
        }
        
        a.normalClose = function (id) {
   			document.getElementById(id).style.display = 'none';
   		}
        
        a.close = function (id) {
   			switch (this.closeMode) {
   			case 1: //正常关闭
   				this.normalClose(id);
   				break;
   			case 2: //不关闭,弹出
   				this.popUp(id, this.popUrl);
   				break;
   			case 3: //关闭并弹出
   				this.normalClose(id);
   				this.popUp(id, this.popUrl);
   				break;
   			default: ;
   			}
   		}

   		a.popUp = function (id, popUrl) {
   			var o = document.getElementById(id).getElementsByTagName("a")[0];
   			o.href = popUrl;
   			o.target = '_blank';
   		}
        
        a.setSize = function(width, height) {
            this.width = width;
            this.height = height;
        }
        
        a.setMinDisplayTime = function (seconds) {
            this.minDisTime = seconds * 1000;
        }
        
        a.setCloseMode = function(closeMode, popUrl) {
            this.closeMode = closeMode;
            this.popUrl = popUrl;
        }
        a.reOpen = function(reOpenUrl){
            document.getElementById("jx_ifrl") && (document.getElementById("jx_ifrl").src = reOpenUrl);
            document.getElementById("jx_ifrr") && (document.getElementById("jx_ifrr").src = reOpenUrl);
        }

        a.showLogo_l = function () {
            clearTimeout(this.TimerLogoHL);
            var logoDiv = document.getElementById('__jx_fm_Logo_l');
            if(logoDiv){
                var clientW = logoDiv.clientWidth;
                if (clientW + 2 < 77) {
                    logoDiv.style.width = (clientW + 2) + 'px';
                    this.TimerLogoSL = setTimeout(_jx_richmedia_dl.showLogo_l, 1);
                } else
                    logoDiv.style.width = '77px';
            }
        }
        a.hideLogo_l = function () {
            clearTimeout(this.TimerLogoSL);
            var logoDiv = document.getElementById('__jx_fm_Logo_l');
            if(logoDiv){
                var clientW = logoDiv.clientWidth;
                if (clientW - 2 > 23) {
                    logoDiv.style.width = (clientW - 2) + 'px';
                    this.TimerLogoHL = setTimeout(_jx_richmedia_dl.hideLogo_l, 1);
                } else
                    logoDiv.style.width = '23px';
            }
        }
        a.showLogo_r = function () {
            clearTimeout(this.TimerLogoHR);
            var logoDiv = document.getElementById('__jx_fm_Logo_r');
            if(logoDiv){
                var clientW = logoDiv.clientWidth;
                if (clientW + 2 < 77) {
                    logoDiv.style.width = (clientW + 2) + 'px';
                    this.TimerLogoSR = setTimeout(_jx_richmedia_dl.showLogo_r, 1);
                } else
                    logoDiv.style.width = '77px';
            }
        }
        a.hideLogo_r = function () {
            clearTimeout(this.TimerLogoSR);
            var logoDiv = document.getElementById('__jx_fm_Logo_r');
            if(logoDiv){
                var clientW = logoDiv.clientWidth;
                if (clientW - 2 > 23) {
                    logoDiv.style.width = (clientW - 2) + 'px';
                    this.TimerLogoHR = setTimeout(_jx_richmedia_dl.hideLogo_r, 1);
                } else
                    logoDiv.style.width = '23px';
            }
        }
        a.getRand = function(arr, num) {
            var newArr = [];
            if(arr.length >0)
                rand(num);
         
            function rand(k){
                if(k==0){
                    return;
                }
                var index = Math.floor(Math.random() * arr.length);
                var flag = true;
                for(var i=0; i<newArr.length; i++){
                    if(newArr[i] == arr[index]){
                        flag = false;
                    }
                }
                if(flag){
                    newArr.push(arr[index]);
                    k--;
                }
                rand(k);
            }
            return newArr;
        }
        a.loop = function () {
        	var timer = setInterval(auto, 1500);
        	var iNow = 0;
        	function auto() {
        		if (iNow > 0) {
        			document.getElementById('_jx_title' + (iNow - 1)).parentNode.style.backgroundColor = '#fff';
        			document.getElementById('_jx_title' + (iNow - 1)).style.color = "#0F0CBF";
        		}
        		if (iNow == 4) {
        			iNow = 0;
        		}
        		document.getElementById('_jx_title' + iNow).parentNode.style.backgroundColor = '#D14836';
        		document.getElementById('_jx_title' + iNow).style.color = "#fff";
        		iNow++;
        	}
        	for (var i = 0; i < 4; i++) {
                document.getElementById('_jx_title' + i).parentNode.index = i;
        		document.getElementById('_jx_title' + i).parentNode.onmouseover = function () {
                    for (var i = 0; i < 4; i++) {
                        document.getElementById('_jx_title' + i).parentNode.style.backgroundColor = '#fff';
                        document.getElementById('_jx_title' + i).style.color = "#0F0CBF";
                    }
                    this.style.backgroundColor = '#D14836';
                    document.getElementById('_jx_title' + this.index).style.color = "#fff";
        			clearInterval(timer);    
        		};
        		document.getElementById('_jx_title' + i).parentNode.onmouseout = function () {
                    this.style.backgroundColor = '#fff';
                    document.getElementById('_jx_title' + this.index).style.color = "#0F0CBF";
        			timer = setInterval(auto, 1500);
        		};
        	}
        }
        window._jx_richmedia_dl = a;
    })();
   
   	_jxdl_op(window._jx_richmedia_dl, "http://cpv.rwjfs.com/cpv/sdl2.ashx?jxu=700532&jxs=0&jxo=7&jxt=34&jxw=0&jxh=0&jxtk=63569402557&jxd=802102&jxdm=d3d3LjAzOTY0LmNvbQ2&jxoby=0&jxlp=1&jxcf=uQEAADcAAABodHRwOi8vd3d3LjAzOTY0LmNvbS9yZWFkL2RlNDgwZTVmMTc2YzExYTBmY2NjYjBlMi5odG1swgAAAGh0dHA6Ly93d3cuYmFpZHUuY29tL2xpbms_dXJsPUdab01yUWhwbkY5NlU5RXZNbks5SzZjODFpUWc0VzllQUNsd2tlNHp5eHNQQkdxbENqOXdCdWR2Z2VTOWZyRVZHai0yLWIxM3RiY2N1QjJOOFJTVW9OcmpHSDRUWk1qRGZCei1odEpCZW9DJndkPSZlcWlkPWVkYzM1ZGQ5MDAwMDUwYzUwMDAwMDAwNDU1NzViMzJmJnBuPTEwJmllPXV0Zi04oAWEAxgAAQEBAAAAAHYAAABNb3ppbGxhLzUuMCAoV2luZG93cyBOVCA2LjE7IFdPVzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMzkuMC4yMTcxLjk5IFNhZmFyaS81MzcuMzYgTEJCUk9XU0VSAgALAAYAAAAxNi4wLjAPAAAAMTE1LjE5NS4xNzYuMjQw8LDDcwYAAADmna3lt54uAA2&jxst=2&jxtm=50&jxtw=0&a1=271&a2=1295", "http://cpv.rwjfs.com/cpv/close.htm?tid=34");
   	var __hasjxdl = 1;

}
   //to 展示地址，cto 落地页地址
   function _jxdl_op(op, to, cto) {
      op.open(to + '&jxln=1');
      op.setCloseMode(1, cto + '&jxln=1');
   }
//@ sourceURL=dynamicdl.js
